<#assign pageName="加班申请审批">
<@override name ="workflow-title">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>${pageName}
            <a href="../../manage" class="layui-btn layui-btn-normal layui-btn-xs" style="vertical-align: text-bottom;">
               <i class="layui-icon layui-icon-return"></i>返回
            </a>
        </legend>
    </fieldset>
</@override>
<@override name="workflow-content">
    <@ctrl.LabelText path="bsLeaveInfo.depName" labelText="所在部门" />
    <@ctrl.LabelText path="bsLeaveInfo.empName" labelText="员工名称" />
   <@ctrl.LabelText path="bsLeaveInfo.leaveCategory" labelText="请假类别" />
    <@ctrl.LabelText path="bsLeaveInfo.startDate" labelText="开始时间" />
    <@ctrl.LabelText path="bsLeaveInfo.endDate" labelText="结束时间" />
    <@ctrl.LabelText path="bsLeaveInfo.leaveDays" labelText="请假天数"/>
    <@ctrl.LabelText path="bsLeaveInfo.leaveType" labelText="请假类型"/>
    <@ctrl.LabelText path="bsLeaveInfo.reason" labelText="请假事由" />
    <@ctrl.LabelText path="bsLeaveInfo.sendUname" labelText="抄送人"/>
    <@ctrl.LabelText path="bsLeaveInfo.remark" labelText="备注"/>
    <@WorkflowOperate/>
    <@ctrl.FormAction saveText="提交" buttons=["submit","back"] backURL="../../manage"/>
</@override>
<@override name="workflow-scripts">
    <script>
        $(function(){
            layui.use(['form','layer','element','jquery'], function(){
                var form = layui.form;
                var layer=layui.layer;
                var element = layui.element;
                $=layui.jquery;
              //监听提交
                form.on('submit(submit)', function(data){
                    submitData(data.field, '${contextPath}/workflow/leave/approve/approve', function(){location.href="${contextPath}/workflow/leave/approve/manage";});
                    return false;
                });
            });
        })
    </script>
</@override>
<@extends name="/workflow/general/ProcessTpl.html"/> 
